package com.example.steam520.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 权限表实体类
 * 映射数据库表：priv
 */
@Data
@TableName("priv") // 指定数据库表名
public class Priv implements Serializable {


    /**
     * 权限ID（自增）
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 权限标识（如：user:add, user:delete）
     */
    private String authority;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }
}